<?php
/**
 * 视图控制器
 */
namespace app\manage\controller\goodscategory;

use app\manage\controller\Base;
use app\common\model\MallCategory;
class Api extends Base
{
    /**商品分类**/
    public function goodsCategory(){
        $data = model('MallCategory')->getPageDatas();
        return json(['code'=>1,'msg'=>'数据返回成功','data'=>$data]);
    }

    public function see(){
        $params = $this->request->param();
        $data = model('MallCategory')->getCategoryDetail($params['id']);
        return json(['code'=>1,'msg'=>'数据返回成功','data'=>$data]);
    }
}